package de.pyrazol.starshipRPG;

import java.awt.*;
import javax.swing.*;

public class Window extends JFrame
{
    public Window()
    {
        this.setTitle("Title");
        this.setDefaultCloseOperation(EXIT_ON_CLOSE);
        this.setSize(800, 480);
        this.setLocation(new Point(400, 200));
        Container content = this.getContentPane();
        content.setLayout(new BorderLayout());

        JMenuBar menu = new JMenuBar();
        this.setJMenuBar(menu);

        JPanel playerShipStats = new JPanel();
        playerShipStats.setSize(200, 400);
        playerShipStats.setLayout(new GridLayout(2, 1));
        JLabel shipType = new JLabel("Type");
        JLabel shipStats = new JLabel("Stats");
        playerShipStats.add(shipType);
        playerShipStats.add(shipStats);

        JPanel combatLog = new JPanel();
        combatLog.setSize(400, 400);
        JTextField combatInfo = new JTextField();
        combatLog.add(combatInfo);

        JPanel enemyShipStats = new JPanel();
        enemyShipStats.setSize(200, 400);
        enemyShipStats.setLayout(new GridLayout(2, 1));
        JLabel enemyType = new JLabel("Type");
        JLabel enemyStats = new JLabel("Stats");
        enemyShipStats.add(enemyType);
        enemyShipStats.add(enemyStats);

        content.add(playerShipStats, BorderLayout.LINE_START);
        content.add(combatLog, BorderLayout.CENTER);
        content.add(enemyShipStats, BorderLayout.LINE_END);

        this.setVisible(true);
    }
}
